package cn.fbs.dao.dm;

import cn.fbs.model.TLabelGroupInfo;
import cn.fbs.vo.CateAndGroupVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface DMLabelGroupInfoMapper {
    int deleteByPrimaryKey(String id);

    int insert(TLabelGroupInfo record);

    int insertSelective(TLabelGroupInfo record);

    TLabelGroupInfo selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(TLabelGroupInfo record);

    int updateByPrimaryKey(TLabelGroupInfo record);

    List<TLabelGroupInfo> findAll();

    List<CateAndGroupVo> categoryAndGroup();

    List<Map<String, Object>> queryLabelByTypeStatistics();

    TLabelGroupInfo selectByName(@Param("name") String name);

    List<Map<String,Object>> getLabelGroupByType(Integer type);

    List<CateAndGroupVo> inherentLabel();

    int selectCountByName(@Param("name") String name);

    int selectCountByNameAndId(@Param("name")String name,@Param("id") String id);
}